package com.itheima.thread;

public class Test {
    public static void main(String[] args) {
        //创建线程
        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();
        MyThread t3 = new MyThread();
        MyThread t4 = new MyThread();
        MyThread t5 = new MyThread();
        //设置线程的名字
        t1.setName("张三");
        t2.setName("李四");
        t3.setName("王五");
        t4.setName("赵六");
        t5.setName("周八");
        //开启线程
        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();
    }
}
